/**
 * 
 */
package org.lex.ftp.ui.explorer.directory;

import java.awt.Component;
import javax.swing.JTree;
import javax.swing.tree.DefaultTreeCellRenderer;

import org.lex.ftp.util.FTPFileIconCache;

public class FtpFileTreeRenderer extends DefaultTreeCellRenderer {
	public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) {
		super.getTreeCellRendererComponent(tree, value, sel, expanded, false, row, hasFocus);
		this.setIcon(FTPFileIconCache.getInstance().getFolderIcon());
		this.setText(String.valueOf(value));
		return this;
	}
}
